package com.mindata.blockchain.socket.common;

import com.mindata.blockchain.common.CommonUtil;
import org.springframework.beans.factory.annotation.Value;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

/**
 * @author wuweifeng wrote on 2018/3/9.
 */
public interface Const {
    /**
     * 服务器地址
     */
    String SERVER = "127.0.0.1";
    /**
     * 服务器分组名
     */
    String GROUP_NAME = "block_group";
    /**
     * 监听端口
     */
    String inner_Lock = "inner_Lock";
    String intro_Lock = "intro_Lock";
//    int PORT = 7789;

    /**
     * 心跳超时时间
     */
    int TIMEOUT = 5000;

    Charset CHARSET = StandardCharsets.UTF_8;

    String localIp = CommonUtil.getLocalIp();
}
